<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			// 定义一个对象
			var student = {
				name: 'tom',
				age: 10,
				address: {
					city: 'LA',
					street: 'queen'
				},
				books: ['math', 'geo'],
				speak: function(){
					console.log("I'm a student");
				}
			};
			console.log(student);
			alert(student.address.city);
			student.speak();
		</script>
	</head>
	<body>
		<h1>对象初始化</h1>
		<input type="button" value="介绍" onclick="student.speak()"/>
	</body>
</html>
